package com.sumainfor.wx.system.gmio.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.gmio.service.CheckOutAcceptanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Meng
 * @ClassName CheckOutAcceptanceController
 * @date 2019/8/19 17:00
 * @description: TODO 退房验收
 */
@RestController
@RequestMapping("/checkOut")
public class CheckOutAcceptanceController {

    @Autowired
    private CheckOutAcceptanceService checkOutService;

    /**
     * @Description //TODO 服务管家退租生成退租结算单, 并交由租后主管审核
     * @return com.sumainfor.common.util.JsonResult
     * @Param [params]
     * @Date 2019/8/20 9:56
     **/
    @PostMapping("/addHoWithdrawal")
    public JsonResult addHoWithdrawal(@RequestBody Map<String,Object> params) {

        return checkOutService.addHoWithdrawal(params);
    }
}
